package bookstore.bound.user;

import bookstore.model.User;

public class UserDisp {
    private Long id;
    private String username;
    private String email;
    private String tel;
    private boolean activate;
    private boolean available;

    public UserDisp(User user) {
        id = user.getUserid();
        username = user.getUsername();
        email = user.getEmail();
        tel = user.getTel();
        activate = user.getActivate();
        available = user.getAvailable();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public boolean isActivate() {
        return activate;
    }

    public void setActivate(boolean activate) {
        this.activate = activate;
    }

    public boolean isAvailable() {
        return available;
    }

    public void setAvailable(boolean available) {
        this.available = available;
    }
}
